ac through pure resistance inductance and capacitance